﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Entities;

namespace QLTB_CTK34
{
    public partial class FormPhanCung : Form
    {
        public FormPhanCung()
        {
            InitializeComponent();
        }
        public FormPhanCung(string tenphancung,string thongtinct):this()
        {
            txtTenPhanCung.Text = tenphancung;
            rtxtThongTinCT.Text = thongtinct;
        }
        public PhanCung pc = new PhanCung();
        private void btnThemPC_Click(object sender, EventArgs e)
        {
            pc.TenPhanCung = txtTenPhanCung.Text;
            pc.ThongTinPhanCung = rtxtThongTinCT.Text;
            DialogResult = DialogResult.OK;
        }

        private void btnThoat_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.Cancel;
        }
    }
}
